package com.breakfast.fun.ui.mall;

import com.breakfast.fun.data.entity.mall.MallBanner;
import com.breakfast.fun.util.Api;
import com.breakfast.fun.util.RxSchedulers;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by yukai on 16/10/1.
 */

public class AbroadModel implements AbroadContract.Model {
    @Override
    public Observable<MallBanner> getAbroadBannerModel(@FieldMap Map<String, String> map) {
        return Api.getInstance().service
                .getMallBannerModel(map)
                .compose(RxSchedulers.io_main());
    }
}
